//
//  UITextField+HBTextLength.h
//  HBLibary
//
//  Created by Rambo on 2018/6/8.
//

#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger, UITextFieldInputType) {
    UITextFieldInputTypeAll,    ///< 允许输入所有
    UITextFieldInputTypeNumber  ///< 允许输入数字
};

typedef void(^UITextFieldTextLengthChange)(NSInteger currentLength, NSUInteger maxLength);

@interface UITextField (HBTextLength)


/**
 设置了允许数字输入代理就会被劫持
 */
@property (nonatomic, assign) UITextFieldInputType hb_inputType;


@property (nonatomic, copy) UITextFieldTextLengthChange hb_textLengthChange;

/**
 最大长度
 */
@property (nonatomic, assign) NSUInteger hb_maxLength;

- (void)hb_showEndEditToolView;
//@property (nonatomic, assign) BOOL hb_showEndEditToolView;


@end
